;
(function (window, angular) {
    'use strict';
    angular.module("Controller.Account", ["Controller.Account.Invoice", "Controller.Account.Receive", "Controller.Account.MoneyBackPlan", "Controller.Account.Pay",
        "Controller.Account.MakeOutInvoice", "Controller.Account.InvoiceInfo",
        "Controller.Account.CheckReceive", "Controller.Account.PrePay", "Controller.Account.RefundReceive","Controller.Account.ArrearsStatistics",
        "Controller.Account.PurchaseInvoiceApply", "Controller.Account.MonthlyFinanceCheck","Controller.Account.ReportReceivalMomthData",
        "Controller.Account.Distributormargin","Controller.Account.SettlementOfServiceExpenses", "Controller.Account.MonthlyFinanceCheckNew",
        "Controller.Account.PayRegister", "Controller.Account.DealerOverdue", "Controller.Account.RepaymentDetails", "Controller.Account.RepaymentDetailsReport",
        "Controller.Account.RepaymentAccount",
    ])
        .config(['$stateProvider', function ($stateProvider) {

            $stateProvider.state("app.account.invoice", {
                url: "/invoice",
                templateUrl: "view/account/invoice.html",
                controller: "InvoiceCtrl"
            });

            $stateProvider.state("app.account.makeOutInvoice", {
                url: "/makeOutInvoice",
                templateUrl: "view/account/makeOutInvoice.html",
                controller: "MakeOutInvoiceCtrl"
            });

            $stateProvider.state("app.account.invoiceInfo", {
                url: "/invoiceInfo",
                templateUrl: "view/account/invoiceInfo.html",
                controller: "InvoiceInfoCtrl"
            });

            $stateProvider.state("app.account.receive", {
                is18n: true,
                url: "/receive",
                templateUrl: "view/account/receive.html",
                controller: "ReceiveCtrl"
            });

            $stateProvider.state("app.account.moneyBackPlan", {
                is18n: true,
                url: "/moneyBackPlan",
                templateUrl: "view/account/moneyBackPlan.html",
                controller: "MoneyBackPlanCtrl"
            });

            $stateProvider.state("app.account.arrearsStatistics", {
                is18n: true,
                url: "/arrearsStatistics",
                templateUrl: "view/account/arrearsStatistics.html",
                controller: "ArrearsStatisticsCtrl"
            });

            $stateProvider.state("app.account.pay", {
                url: "/pay",
                templateUrl: "view/account/pay.html",
                controller: "PayCtrl"
            });

            $stateProvider.state("app.account.checkReceive", {
                is18n: true,
                url: "/checkReceive",
                templateUrl: "view/account/checkReceive.html",
                controller: "CheckReceiveCtrl"
            });

            $stateProvider.state("app.account.prepPay", {
                is18n: true,
                url: "/prepPay",
                templateUrl: "view/account/prePay.html",
                controller: "PrePayCtrl"
            });

            $stateProvider.state("app.account.refundReceive", {
                is18n: true,
                url: "/refundReceive",
                templateUrl: "view/account/refundReceive.html",
                controller: "RefundReceiveCtrl"
            });

            $stateProvider.state("app.account.purchaseInvoiceApply", {
                url: "/purchaseInvoiceApply",
                templateUrl: "view/account/purchaseInvoiceApply.html",
                controller: "PurchaseInvoiceApplyCtrl"
            });

            $stateProvider.state("app.account.monthlyFinanceCheck", {
                url: "/monthlyFinanceCheck",
                templateUrl: "view/account/monthlyFinanceCheck.html",
                controller: "MonthlyFinanceCheckCtrl"
            });

            $stateProvider.state("app.account.monthlyFinanceCheckNew", {
                url: "/monthlyFinanceCheckNew",
                templateUrl: "view/account/monthlyFinanceCheckNew.html",
                controller: "MonthlyFinanceCheckNewCtrl"
            });

            $stateProvider.state("app.account.receivalMomthData", {
                url: "/receivalMomthData",
                templateUrl: "view/account/reportReceivalMomthData.html",
                controller: "ReportReceivalMomthDataCtrl"
            });
           $stateProvider.state("app.account.distributormargin", {
                url: "/distributormargin",
                templateUrl: "view/account/distributormargin.html",
                controller: "DistributormarginCtrl"
           });

            $stateProvider.state("app.account.settlementOfServiceExpenses", {
                url: "/settlementOfServiceExpenses",
                templateUrl: "view/account/settlementOfServiceExpenses.html",
                controller: "SettlementOfServiceExpensesCtrl"
           });

           $stateProvider.state("app.account.payRegister", {
                url: "/payRegister",
                templateUrl: "view/account/payRegister.html",
                controller: "PayRegisterCtrl"
            });

           $stateProvider.state("app.account.dealerOverdue", {
                url: "/dealerOverdue",
                templateUrl: "view/account/dealerOverdue.html",
                controller: "DealerOverdueCtrl"
            });

           $stateProvider.state("app.account.repaymentDetails", {
                url: "/repaymentDetails",
                templateUrl: "view/account/repaymentDetails.html",
                controller: "RepaymentDetailsCtrl"
            });
            
           $stateProvider.state("app.account.repaymentDetailsReport", {
                url: "/repaymentDetailsReport",
                templateUrl: "view/account/repaymentDetailsReport.html",
                controller: "RepaymentDetailsReportCtrl"
            });

           $stateProvider.state("app.account.repaymentAccount", {
                url: "/repaymentAccount",
                templateUrl: "view/account/repaymentAccount.html",
                controller: "RepaymentAccountCtrl"
            }); 
        }])
    ;
})(window, window.angular);
